package com.ny007;

public class WeiXin extends Pay{
    double m=90;
    @Override
    public void pay(double money) {
        if (m<money){
            System.out.println("余额不足穷鬼");
        }
        else {
            System.out.println("你消费了"+money);
            m=m-money;
            System.out.println("余额为"+m);
        }
    }
}
